package com.cheche.dn.error;

/**
 * 错误码
 * Created by cheshun on 15/7/28.
 */
public enum ErrorCode {

    USER_EXIST(40001, "user exist"),
    TOKEN_EXPIRED(40002, "token expired"),
    PASSWORD_ERROR(40003, "password error"),
    USER_NOT_EXIST(40004, "user not exist"),
    VCODE_ERROR(40005, "verification code error"),
    NICKNAME_REPEAT(40006, "nickname repeat"),
    ORDER_ALREADY_DEAL(40007, "order already deal"),
    ORDER_NOT_EXIST(40008, "order not exist"),
    SYSTEM_MESSAGE_TYPE_ERROR(40009, "system_message_type_error"),
    BALANCE_NOT_ENOUGH(40010, "balance not enough"),
    PRICE_NOT_SET(40011, "price not set"),

    ERROR(50000, "system error");


    private int value;
    private String msg;

    ErrorCode(int value, String msg) {
        this.value = value;
        this.msg = msg;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
